#foreach($document in $guestDocumentList)
    <div class="thumbnail">
        <div class="nodisplay">$!document.docid</div>
        <div class="caption">
            
            <h3>
                $document.title
            </h3>
            
                #set($str=$document.content)
                #if($str.length()>400)
                    #set($str=$str.substring(0,400))
                    #set($getStr = $str.replaceAll("<[.[^<]]*>",""))
                    #set($getStr = $getStr.replaceAll("<[.[^<]]*",""))
                    
                    <p>$getStr</p>
                #else
                    <p>$!document.content</p>
                #end
            
            <p>
                <a class="btn btn-primary" href="/document?method=show&docid=$document.docid">浏览</a> 
                
            </p>
        </div>
    </div>
#end